package com.hospital.hospitalsystem.modules.doctor.service;

import com.hospital.hospitalsystem.modules.doctor.dao.entity.BookRecordEntity;
import com.hospital.hospitalsystem.modules.doctor.dao.mapper.BookRecordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * @author qiancheng
 * @date 2023/4/27
 */
@Component
public class BookRecordService {

    @Autowired
    private BookRecordMapper bookRecordMapper;

    public List<BookRecordEntity> selectByExample(Example example) {
        return bookRecordMapper.selectByExample(example);
    }

    public void updateByExampleSelective(BookRecordEntity bookRecordEntity,Example example) {
        bookRecordMapper.updateByExampleSelective(bookRecordEntity,example);
    }

    public void insertSelective(BookRecordEntity bookRecordEntity) {
        bookRecordMapper.insertSelective(bookRecordEntity);
    }

    public void deleteByExample(Example example) {
        bookRecordMapper.deleteByExample(example);
    }

}
